//
//  main.m
//  EnumTest
//
//  Created by Ge Jian Feng on 14-5-24.
//  Copyright (c) 2014年 Ge Jian Feng. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{

    @autoreleasepool {
        enum season {
            spring = 4,
            summer = 1,
            fall,
            winter
        };
        
        enum season myLove, yourLove;
        myLove = winter;
        yourLove = fall;
        
        NSLog(@"winter的值: %u", myLove);
        NSLog(@"fall的值: %u", fall);
        
        if (spring > winter) {
            NSLog(@"春天大于冬天吗");
        }
        
        enum {
            male,
            female
        } me, you;
        me = male;
        you = 1;
        
        NSLog(@"you的值: %u", you);
        
        int iVal = you * 2 + 12 + me;
        NSLog(@"%d", iVal);
    }
    return 0;
}

